(ns ura.common
  (:require
   [reagent.core :as r]
   [reagent.dom :as rd]
   [stylefy.core :as sty]
   [stylefy.reagent :as stylefy-reagent]
   [taoensso.telemere :as t]

   ))


(defn log [& datas]
  (apply js/console.log (clj->js datas))
  )

(defn spy [data]
  (t/spy!  data)
  )

(defn comparison [data1 data2 field]
  "for table column use to sort"
  (compare (get (js->clj data1 :keywordize-keys true) field) 
           (get (js->clj data2 :keywordize-keys true) field)))

